POV-Ray : Newsgroups : povray.binaries.images : Eavesdropping - new WIP (~130kB) : Re: Eavesdropping - new WIP (~130kB) Server Time
2 Aug 2024 18:11:16 EDT (-0400)
  Re: Eavesdropping - new WIP (~130kB)  
From: M a r c
Date: 18 Aug 2007 05:54:23
Message: <46c6c1cf$1@news.povray.org>

46c6b8cb$1@news.povray.org...
Last one, I think, now radius and y coordinate declared in the same 2d 
vector
// radius and y coordinate declared in same 2d vector

#declare P1=<.7,12.5>;
#declare P2=<.9,10>;
#declare P3=<1.1,5>;
#declare P4=<1.15,0>;
#declare P5=<1.1,-2.5>;



#declare Shaft=
sphere_sweep {

  cubic_spline

  5,
  <0, P1.y, 0>, P1.x
  <0, P2.y, 0>, P2.x
  <0, P3.y, 0>, P3.x
  <0, P4.y, 0>, P4.x
  <0, P5.y, 0>, P5.x

}

#local N_flutes=25; //Number of flutes
#local Flute_Ratio=.9; //flute radial coverage
#local F_fctr=pi*Flute_Ratio/N_flutes;

 #declare Flute =
  sphere_sweep {
  cubic_spline
  5,
  <P1.x, P1.y, 0>, F_fctr*P1.x
  <P2.x, P2.y, 0>, F_fctr*P2.x
  <P3.x, P3.y, 0>, F_fctr*P3.x
  <P4.x, P4.y, 0>, F_fctr*P4.x
  <P5.x, P5.y, 0>, F_fctr*P4.x
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.